* {
  padding: 0;
  margin: 0;
}
html,
body {
  height: 100%;
  width: 100%;
}
body {
  font-size: 0.3rem;
}
.nav {
  height: 1rem;
  background: #38f;
  position: relative;
  z-index: 1;
}
.nav h1 {
  width: 100%;
  text-align: center;
  line-height: 1rem;
  font-size: 0.4rem;
  color: #fff;
}
.nav .user {
  position: absolute;
  right: .10rem;
  top: 0;
  line-height: 1rem;
}
.nav .signout {
  cursor: pointer;
}
.nav .signout:hover {
  color: red;
}
div.content {
  width: 100%;
  position: absolute;
  top: 1rem;
  bottom: 0;
}
div.content div.box {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 2rem;
  background: #f5f6f7;
  overflow: auto;
}
div.content div.box div.mess {
  overflow: hidden;
  padding: 10px 0;
}
div.content div.box div.mess div.icon {
  float: left;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3296fa;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 40px;
}
div.content div.box div.mess div.info {
  float: left;
  width: 70%;
}
div.content div.box div.mess div.info span.name {
  padding: 0 30px 0 10px;
  color: #7a7d82;
  font-size: 14px;
}
div.content div.box div.mess div.info span.time {
  color: #bbb;
  font-size: 12px;
}
div.content div.box div.mess div.info div.mess-c {
  display: inline-block;
  margin-top: 4px;
  margin-left: 10px;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ededee;
  color: #191f25;
  background: #fff;
  border-radius: 4px;
}
div.content div.box div.mess div.info div.mess-c img {
  max-width: 100%;
}
div.content div.box div.self div.icon {
  float: right;
}
div.content div.box div.self div.info {
  float: right;
  text-align: right;
}
div.content div.box div.self div.info p span.name {
  padding: 0 10px 0 30px;
  color: #7a7d82;
}
div.content div.box div.self div.info div.mess-c {
  text-align: left;
  margin-right: 10px;
  background: #cce6ff;
  border-color: #bed6ee;
}
div.content div.edit {
  height: 2rem;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}
div.content div.edit textarea {
  resize: none;
  width: 100%;
  height: 1.4rem;
  box-sizing: border-box;
  display: block;
}
div.content div.edit div.btn-wrap span.btn {
  display: block;
  width: 100%;
  height: 0.6rem;
  background: #38f;
  color: #fff;
  text-align: center;
  line-height: 0.6rem;
  cursor: pointer;
}
